Manipulate bits more efficiently
authorMatthias Clasen <mclasen@redhat.com>
Wed, 9 Sep 2015 18:00:49 +0000 (14:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 9 Sep 2015 18:02:27 +0000 (14:02 -0400)
commitd7dd6eccd500402ac51c2a3d2b8f768acfa75d4a
tree5038dda7470a55484d5cb6ba9a233861224c38f3
parenta9481cb410c6e2c1b516b282909d04f9ec1d61c4
Manipulate bits more efficiently

The function to translate GtkCssChange enum values to the PARENT
ones is called very frequently. This patch speeds it up tremendously.
The callgrind instruction count for this function in the listbox
demo goes from 108M to 7M.
gtk/gtkcsstypes.c